<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
body {
	background-image: url("show/images/pageturner.png");
	background-repeat: no-repeat;
}

a {
	text-decoration: none;
}

a:visited {
	color: #0000EE;
}

.mytable {
	border: 1px solid #A6C1E4;
	font-family: Arial;
	border-collapse: collapse;
}

table th {
	border: 1px solid black;
	background-color: #71c1fb;
	width: 100px;
	height: 20px;
	font-size: 15px;
}

table td {
	border: 1px solid #A6C1E4;
	text-align: center;
	height: 15px;
	padding-top: 5px;
	font-size: 12px;
}

.double {
	background-color: #c7dff6;
}
</style>
</head>
<body>
	<a href="CreateContent">新建文章</a>
	<table class="mytable" align="center" width="1000" border="1">
		<caption>
			<b>文章信息</b>
		</caption>
		<tr>

			<th>文章标题</th>
			<th>文章分类</th>
			<th>审核状态</th>
			<th>驳回原因</th>
			<th>操作</th>
		</tr>

		<c:forEach items="${list }" var="article">
			<tr class="double">

				<td>${article.title }</td>
				<td>${article.classname }</td>
				<td>${article.statement }</td>
				<td>${article.description }</td>
				<td align="center"><c:if test="${article.statement !='已审核发布' }">
						<a href="UpdateContent?id=${article.id }">修改</a>||
			<a href="DeleteContent?id=${article.id }"
							onclick="return confirm('确定删除该文章吗？');">删除</a>
					</c:if></td>
			</tr>
		</c:forEach>



	</table>
</body>
</html>